<header class="aui-bar aui-bar-nav aui-bar-light" style="position:fixed;top:0;">
    <a class="aui-pull-left aui-btn" ng-if="buy_imdy" href="#/item/info?item_id={{buy_item_id}}">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <a class="aui-pull-left aui-btn" ng-if="cartIds" ng-href="#/shoppingcart/list">
        <span class="aui-iconfont aui-icon-left" ></span>
    </a>
    <div class="aui-title">确认订单</div>
</header>
		<section class="aui-content" ng-init="listAction()" style="top:2.25rem;position:relative;">
		  <ul class="aui-list aui-media-list aui-list-in" ng-if="order">
	        <li class="aui-list-item aui-list-item-middle" ui-sref="address.add" ng-if="!order.deliver_address">
	            <div class="aui-list-item-inner aui-list-item-arrow">
	                <div class="aui-list-item-title">请填写收货地址</div>
	            </div>
	        </li>
	        <a class="aui-list-item aui-list-item-arrow" ng-if="order.deliver_address" href="#/buy/choice?cart={{cartIds}}&address_id={{address_id}}" ><!--href="#/buy/choice?cart={{cartIds}}&address_id={{address.address_id}}"-->
	        	<div class="aui-media-list-item-inner">
	        		<div class="aui-list-item-media" style="padding-right:0;width:2.5rem;">
	        			<div class="aui-iconfont aui-icon-location"></div>
	        		</div>
	        		<div class="aui-list-item-inner ">
	        			<div class="aui-list-item-text">
	        				<div class="aui-list-item-title">
	        				收货人：	{{order.deliver_name}}
	        				</div>
	        				<div class="aui-list-item-right">
	        					{{order.deliver_phone}}
	        				</div>
	        			</div>
	        			<div class="aui-list-item-text">
	        				{{order.deliver_address}}
	        			</div>
	        		</div>
	        	</div>
	        </a>
	      </ul>
	      <ul class="aui-list aui-media-list aui-list-in" ng-if="buy_order">
	        <li class="aui-list-item aui-list-item-middle" ui-sref="address.add" ng-if="!buy_order.deliver_address">
	            <div class="aui-list-item-inner aui-list-item-arrow">
	                <div class="aui-list-item-title">请填写收货地址</div>
	            </div>
	        </li>
	        <a class="aui-list-item aui-list-item-arrow" ng-if="buy_order.deliver_address" href="#/buy/choice?buy_imdy={{buy_imdy}}&address_id={{address_id}}">
	        	<div class="aui-media-list-item-inner">
	        		<div class="aui-list-item-media" style="padding-right:0;width:2.5rem;">
	        			<div class="aui-iconfont aui-icon-location"></div>
	        		</div>
	        		<div class="aui-list-item-inner ">
	        			<div class="aui-list-item-text">
	        				<div class="aui-list-item-title">
	        				收货人：	{{buy_order.deliver_name}}
	        				</div>
	        				<div class="aui-list-item-right">
	        					{{buy_order.deliver_phone}}
	        				</div>
	        			</div>
	        			<div class="aui-list-item-text">
	        				{{buy_order.deliver_address}}
	        			</div>
	        		</div>
	        	</div>
	        </a>
	      </ul>
	    <ul class="aui-list aui-media-list" ng-repeat="(shop_id, shop) in shop" ng-if="shop" >
	        <li class="aui-list-header">
	            图文列表{{shop_id}}
	        </li>
	        <li class="aui-list-item" ng-repeat="orderitem in shop.items">
	        	<div class="aui-media-list-item-inner">
	        		<div class="aui-list-item-media">
	        			<img ng-src="{{orderitem.item.img}}">
	        		</div>
	        		<div class="aui-list-item-inner aui-ellipsis-1" ng-repeat="sku in orderitem.item.skus" ng-if="sku.sku_checked">
							{{orderitem.item.title}}
	        			
	        			<div class="aui-list-item-text aui-font-size-12">
	        				规格:{{sku.skus_propertie_name}}22
	        			</div>

	        			<div class="aui-list-item-text aui-margin-t-10">
	        				￥{{sku.sku_price}}
	        				 	<div class="aui-info-item"></div>
		        				<div class="aui-list-info-item">
			        					*{{orderitem.quantity}}
			        			</div>
	        			</div>
	        				        			
	        		</div>
	        	</div>
	        </li>
	        <li class="aui-list-item">
	       			<div class="aui-list-item-inner">
		                <div class="aui-list-item-input">
		                    <input type="text" ng-model="shop.note" placeholder="给卖家留言" >
		                </div>
		            </div>
	       		</li>
	      <!--   <li class="aui-list-item">
	            <div class="aui-list-item-inner">
	            	<div class="aui-list-item-text">
	            		<div class="aui-list-item-label">
		                    支付选项
		                </div>
		                <div class="aui-list-item-input">
		                   <label ng-click="checkedPayments(0,shop)">	
		                   		<input class="aui-radio" ng-model="shop.payment_opt" type="radio" name="paymentopt{{orderitem.item.item_id}}"  value="0" > 微信
		                   </label>
	                       <label ng-click="checkedPayments(1,shop)">
	                       		<input class="aui-radio" ng-model="shop.payment_opt" type="radio" name="paymentopt{{orderitem.item.item_id}}"  value="1"> 支付宝
	                       	</label>
		                </div>
	            	</div>
	            </div>
	        </li> -->
	    </ul>
	    <ul class="aui-list aui-media-list" ng-if="buy_order" >
	        <li class="aui-list-header">
	            商品列表
	        </li>
	        <li class="aui-list-item" ng-repeat="item in buy_order.items">
	        	<div class="aui-media-list-item-inner">
	        		<div class="aui-list-item-media">
	        			<img ng-src="{{buy_order.item.img}}">
	        		</div>
	        		<div class="aui-list-item-inner aui-ellipsis-1" ng-repeat="sku in buy_order.item.skus" ng-if="sku.sku_checked">
							{{buy_order.item.item.note}}
	        			
	        			<div class="aui-list-item-text aui-font-size-12">
	        				规格:{{sku.skus_propertie_name}}
	        			</div>

	        			<div class="aui-list-item-text aui-margin-t-10">
	        				￥{{item.price}}
	        				 	<div class="aui-info-item"></div>
		        				<div class="aui-list-info-item">
			        					*{{buy_order.quantity}}
			        			</div>
	        			</div>
	        				        			
	        		</div>
	        	</div>
	        	<div class="aui-list-item-inner">
	            	<div class="aui-list-item-text">
	            		<div class="aui-list-item-label">
		                    购买数量
		                </div>
	        			<div class="aui-list-item-input">
	        				 <div class="aui-bar-btn-item aui-font-size-20" ng-click="ordernumTab(buy_order,'-')">
						        <i class="aui-iconfont aui-icon-minus"></i>
						    </div> 
						    <div class="aui-bar-btn-item">
						        <input type="number" disabled class="aui-input aui-text-center" id="count" ng-model="buy_order.quantity" >
						       
						    </div>
						    <div class="aui-bar-btn-item aui-font-size-20" ng-click="ordernumTab(buy_order,'+')">
						        <i class="aui-iconfont aui-icon-plus"></i>
						    </div>
	        			</div>
	        		</div>
	        </li>
	      
	        <li class="aui-list-item">
	       			<div class="aui-list-item-inner">
		                <div class="aui-list-item-input">
		                    <input type="text" ng-model="buy_order.note" placeholder="给卖家留言" >
		                </div>
		            </div>
	       		</li>
<!-- 	        <li class="aui-list-item">
	            <div class="aui-list-item-inner">
	            	<div class="aui-list-item-text">
	            		<div class="aui-list-item-label">
		                    支付选项
		                </div>
		                <div class="aui-list-item-input">
		                   <label ng-click="checkedPayments(0,buy_order)">	
		                   		<input class="aui-radio" ng-model="buy_order.payment_opt" type="radio" name="paymentopt{{buy_order.item.item_id}}"  value="0" > 微信
		                   </label>
	                       <label ng-click="checkedPayments(1,buy_order)">
	                       		<input class="aui-radio" ng-model="buy_order.payment_opt" type="radio" name="paymentopt{{buy_order.item.item_id}}"  value="1"> 支付宝
	                       	</label>
		                </div>
	            	</div>
	            </div>
	        </li> -->
	       </ul>
	<!--        	<ul class="aui-list aui-media-list"  ng-if="order">
		        <li class="aui-list-header">
		            图文列表{{order.shop_id}}
		        </li>
		        <li class="aui-list-item" >
		        	<div class="aui-media-list-item-inner" ng-repeat="item in order.items">
		        		<div class="aui-list-item-media">
		        			<img src="{{item.image}}">
		        		</div>
		        	
		        		<div class="aui-list-item-inner aui-ellipsis-1">
		        			

		        			<div class="aui-list-item-text aui-margin-t-10">
		        				￥{{item.price}}
		        				 	<div class="aui-info-item"></div>
			        				<div class="aui-list-info-item">
				        					*{{item.quantity}}
				        			</div>
		        			</div>
		        				        			
		        		</div>
		        	</div>
		        </li>
		        <li class="aui-list-item">
		       			<div class="aui-list-item-inner">
			                <div class="aui-list-item-input">
			                    <input type="text" ng-model="order.note" placeholder="给卖家留言" >
			                </div>
			            </div>
		       		</li>
		        <li class="aui-list-item">
		            <div class="aui-list-item-inner">
		            	<div class="aui-list-item-text">
		            		<div class="aui-list-item-label">
			                    支付选项
			                </div>
			                <div class="aui-list-item-input">
			                   <label>	
			                   		<input class="aui-radio" ng-model="order.payment_opt" type="radio" name="paymentopt{{orderitem.item.item_id}}"  value="0" > 微信
			                   </label>
		                       <label>
		                       		<input class="aui-radio" ng-model="order.payment_opt" type="radio" name="paymentopt{{orderitem.item.item_id}}"  value="1"> 支付宝
		                       	</label>
			                </div>
		            	</div>
		            </div>
		        </li>
	        </ul> -->
	       <ul class="aui-list aui-form-list">
	       		
	       </ul>
	    </section>
    <footer class="aui-bar aui-bar-tab" id="footer">
	    <a class="aui-bar-tab-item" tapmode >
	      	<div class="aui-bar-tab-label" >总金额：￥{{buy_Total}} 应付金额：￥{{pay_fee}}</div>
	    </a>
	    <div class="aui-bar-tab-item" tapmode>
	    	<div class="aui-btn aui-btn-danger" ng-if="!order&&!buy_order" ng-click="previewAdd()">提交订单</div>
	    	<div class="aui-btn aui-btn-danger" ng-if="order" ng-click="confirmOrder()">确认订单订单</div>
	  
	    	<div class="aui-btn aui-btn-danger" ng-if="buy_order" ng-click="confirmOrder()">确认订单订单</div>
	    </div>
	</footer>
